<template>
  <div class="body">
    <div class="top">
      <h2>
        <i @click="fun()">&lt;</i>
        <p>信用卡申请</p>
        <b>...</b>
      </h2>
    </div>
    <div class="center">
      <div class="centop">填写身份信息</div>
      <div class="xinxi">
        <p><i>*</i>中文姓名</p>
        <input type="text" value="张三" />
      </div>
      <div class="xinxi">
        <p><i>*</i>拼音姓名</p>
        <input type="text" value="ZHANG SAN" />
      </div>
      <div class="xinxi">
        <p><i>*</i>身份证号</p>
        <input type="text" placeholder="请输入身份证号" />
      </div>
      <div class="xinxi">
        <p><i>*</i>手机号</p>
        <input type="text" placeholder="请输入手机号码" />
      </div>
      <div class="xinxi">
        <p><i>*</i>验证码</p>
        <input type="text" placeholder="输入验证码" />
        <button>点我获取验证码</button>
      </div>
    </div>
    <div class="btn">
      <button>点我申请</button>
    </div>
    <Bottom />
  </div>
</template>

<script>
import Bottom from "@/components/CreditCar/Tansact/CarBom.vue";
export default {
  components: { Bottom },
  methods: {
    fun() {
      this.$router.push("/transact");
    },
  },
};
</script>

<style lang="scss" scoped>
.body {
  background: #f0f0f0;
  overflow: hidden;
  .top {
    width: 100%;
    height: 0.6rem;
    background: #3069b0;
    h2 {
      display: flex;
      justify-content: space-between;
      width: 100%;
      height: 100%;
      color: #fff;
      align-items: center;
      i {
        font-size: 0.2rem;
        margin-left: 0.1rem;
      }
      b {
        font-size: 0.2rem;
        margin-right: 0.15rem;
      }
      p {
        font-size: 0.2rem;
      }
    }
  }
  .center {
    margin: 0.1rem 0;
    width: 100%;
    background: #fff;
    .centop {
      width: 100%;
      height: 0.58rem;
      text-align: center;
      line-height: 0.58rem;
      font-weight: 700;
      border-bottom: 0.01rem solid #f2f2f2;
    }
    .xinxi {
      width: 100%;
      height: 0.58rem;
      display: flex;
      padding: 0 0.1rem;
      border-bottom: 0.01rem solid #f2f2f2;
      position: relative;
      p {
        width: 40%;
        line-height: 0.58rem;
        i {
          color: red;
        }
      }
      input {
        width: auto;
        height: 100%;
      }
      button {
        position: absolute;
        width: 1rem;
        height: 0.4rem;
        font-size: 0.12rem;
        top: 50%;
        margin-top: -0.2rem;
        right: 0.25rem;
        background: #2b65a9;
        color: #fff;
      }
    }
  }
  .btn {
    width: 100%;
    height: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.2rem 0;
    button {
      width: 3.44rem;
      height: 0.6rem;
      background: #5c9bf8;
      border-radius: 0.4rem;
      color: white;
      font-size: 0.24rem;
    }
  }
}
</style>